<!--首页云村KTV-->
<template>
  <div class="ktv">
    <div class="header">
      <h4 class="title">{{ ktv.uiElement.subTitle.title }}</h4>
      <span class="more"
        >{{ ktv.uiElement.button.text }}<van-icon name="arrow"
      /></span>
    </div>
    <div class="content">
        <div class="scroll" :style="{ width: w + '%' }">
            <div class="item" v-for="item in ktv.extInfo.roomInfoList" :key="item.anchorId">
                <img :src="item.bgUrl" alt="">
            </div>
        </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["ktv"],
  data(){
      return{
          w: null,
      }
  },
  created() {
    this.w = this.ktv.extInfo.roomInfoList.length * 30;
  },
};
</script>

<style lang="less" scoped>
.ktv {
  background: #fff;
  padding: 2.666vw;
  margin-bottom: 2.666vw;
  .header {
    padding-bottom: 2.666vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .more {
      color: #474747;
      border: 2px solid #f6f6f6;
      padding: 1vw 1.5vw;
      display: flex;
      align-items: center;
      font-size: 12px;
      border-radius: 15px;
    }
  }
  .content{
      overflow-x: scroll;
      .item{
          width: 30%;
          padding: 0 2vw;
          img{
              width: 100%;
               border-radius: 10px;
          }
      }
  }
}
</style>